<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>jQuery Scroll Depth Test</title>
</head>
<body>
  <div id="console" style="background: #aaa; width: 200px; position: fixed; top: 0; right: 0; text-align: center; padding: 20px; line-height: 1; font-family: sans-serif;"></div>
  <h1>jQuery Scroll Depth Test Page</h1>
  <div id="top" style="background: #eee; height: 500px">#top</div>
  <div id="main" style="background: #ccc; height: 2000px">#main</div>
  <footer style="background: #999; height: 200px; display: block;">footer</footer>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  <script src="../jquery.scrolldepth.js"></script>
  <script>
    $.scrollDepth({
      testing: true,
      elements: ['#main', 'footer']
    });
  </script>
</body>
</html>